package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the per_pms_mgm database table.
 * 
 */
@Entity
@Table(name="per_pms_mgm")
@NamedQuery(name="PerPmsMgm.findAll", query="SELECT p FROM PerPmsMgm p")
public class PerPmsMgm implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int mgmid;

	private String mgmyq;

	//bi-directional many-to-one association to PerPmsDept
	@ManyToOne
	@JoinColumn(name="DEPTID")
	private PerPmsDept perPmsDept;

	//bi-directional many-to-one association to PerPmsEmp
	@ManyToOne
	@JoinColumn(name="EMPID")
	private PerPmsEmp perPmsEmp;

	public PerPmsMgm() {
	}

	public int getMgmid() {
		return this.mgmid;
	}

	public void setMgmid(int mgmid) {
		this.mgmid = mgmid;
	}

	public String getMgmyq() {
		return this.mgmyq;
	}

	public void setMgmyq(String mgmyq) {
		this.mgmyq = mgmyq;
	}

	public PerPmsDept getPerPmsDept() {
		return this.perPmsDept;
	}

	public void setPerPmsDept(PerPmsDept perPmsDept) {
		this.perPmsDept = perPmsDept;
	}

	public PerPmsEmp getPerPmsEmp() {
		return this.perPmsEmp;
	}

	public void setPerPmsEmp(PerPmsEmp perPmsEmp) {
		this.perPmsEmp = perPmsEmp;
	}

}